package com.newbingo.dao.imple;

import java.util.List;
import com.newbingo.entity.Game;
import com.newbingo.entity.GamePlay;
import com.newbingo.util.*;

public interface IGameDao {
	// property constants
	public static final String GAMENAME = "gamename";
	public static final String TYPE = "type";
	public static final String RULE = "rule";
	
	public abstract void save(Game transientInstance);
	
	public abstract void delete(Game persistentInstance);
	
	public abstract Game findById(java.lang.Integer id);

	public abstract List findByExample(Game instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByGamename(Object gamename);

	public abstract List findByType(Object type);
	
	public abstract List findByRule(Object rule);

	public abstract List findAll();

	public abstract Game merge(Game detachedInstance);

	public abstract void attachDirty(Game instance);

	public abstract void attachClean(Game instance);
	
	public abstract Pager findByPage(int start,int limit,Object type);
	
	
}
